package com.atguigu.springbootdemo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Smexy on 2022/12/30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//默认是将 实体类的名字作为表名
@TableName("employee")
public class Employee
{
    //当前这个实体类映射的表的id是自增主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String lastName;
    private String email;
    private String gender;

    /*public void setLast_name(String a){
        this.lastName = a;
    }*/
}
